home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / DemonicDefence3.swf / scripts / DefineButton2_992 / BUTTONCONDACTION on(release).as next >
Encoding:
Text File  |  2005-09-27  |  427 b   |  18 lines

  1. on(release){
  2.    if(_root.magRune >= 4 && _root.windRune >= 1 && this.timey.timer == 100)
  3.    {
  4.       _root.magRune -= 4;
  5.       _root.windRune -= 1;
  6.       _root.summonaxe._visible = true;
  7.       this.timey.timer = 0;
  8.       this.timey.timeIt = 2;
  9.       this.timey._visible = true;
  10.       _root.summonaxe.play();
  11.       _root.axepower = random(2) + 1;
  12.    }
  13.    else
  14.    {
  15.       _root.messy = "Not enough Runes";
  16.    }
  17. }
  18.